﻿<!doctype html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<script>
			function getOS(){
			    var userAgent =
			    ("navigator" in window &&
			      "userAgent" in navigator &&
			      navigator.userAgent.toLowerCase()) ||
			    "";
			  var vendor =
			    ("navigator" in window &&
			      "vendor" in navigator &&
			      navigator.vendor.toLowerCase()) ||
			    "";
			  var appVersion =
			    ("navigator" in window &&
			      "appVersion" in navigator &&
			      navigator.appVersion.toLowerCase()) ||
			    "";
			  if (
			    /iphone/i.test(userAgent) ||
			    /ipad/i.test(userAgent) ||
			    /ipod/i.test(userAgent)
			  )
			    return "ios";
			  if (/android/i.test(userAgent)) return "android";
			  if (/win/i.test(appVersion) && /phone/i.test(userAgent))
			    return "windowsPhone";
			  if (/mac/i.test(appVersion)) return "MacOSX";
			  if (/win/i.test(appVersion)) return "windows";
			  if (/linux/i.test(appVersion)) return "linux";

			}
			var reurl = '';
			if(getOS() === 'android'){
				reurl = '//' + window.location.hostname + ':80/assets/sft/SftGlAndroid.apk';
			}
			else if(getOS() === 'ios'){
				reurl = 'http://dongcanjia.top/SQJZCLIENT.html'
			}
			else{
				alert('无法判断您的客户端，请联系客服。')
			}
			if(reurl){
				window.location.href = reurl;
			}
		</script>
	</head>
	<body>
		<!--静态页面-->
	</body>
</html>
